{{--{{ Form::open(array('route' => 'customers.login','files'=>true,'id'=>'pages')) }}--}}
{{--<input type="text" name="name">--}}
{{--<input type="text" name="mobile">--}}
{{--<select name="p_id">--}}
{{--<option value="3">山西省</option>--}}
{{--</select>--}}
{{--<select name="c_id">--}}
{{--<option value="4">太原市</option>--}}
{{--</select>--}}
{{--<input type="radio" name="sex" value="1">nan--}}
{{--<input type="radio" name="sex" value="2">nv--}}



{{--<input type="submit">--}}
{{--{{ Form::close() }}--}}

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>雷谛科技</title>
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link rel="stylesheet" type="text/css" href="{{ URL::asset('front/style/reset.css') }}" />
<link rel="stylesheet" type="text/css" href="{{ URL::asset('front/style/root.css') }}" />
<link rel="stylesheet" href="{{ URL::asset('front/fonts/font-awesome.min.css') }}">
<script type="text/javascript" src="{{ URL::asset('front/js/jquery.min.js') }}"></script>
<script type="text/javascript" charset="utf-8" src="{{ asset('front/js/jquery.validate.min.js') }}"></script>
<script type="text/javascript" src="{{ URL::asset('front/js/toogle.js') }}"></script>
</head>
<body>

    <!-- start header -->
    	<div id="header">
         <img src="{{ URL::asset('front/img/logo.png') }}" width="120" height="40" alt="logo" class="logo" />
         	<a href="javascript:void(0)" onclick="WeixinJSBridge.call('closeWindow');" class="button back">
         	    <img src="{{ URL::asset('front/img/wechat-button.png') }}" width="17" height="18" alt="icon" />
            </a>
         	<a href="#" class="button create"><img src="{{ URL::asset('front/img/user.png') }}" width="16" height="16" alt="icon"/></a>
        <div class="clear"></div>
</div>
    <!-- end header -->


    <!-- start page -->
    <div class="page">


            <div class="simplebox">
                <h1 class="titleh">我的资料</h1>
                <div class="content">
            {{ Form::model($customer, array('method' => 'put', 'route' => array('customers.update', $customer->id),'files'=>true,'id'=>'customers')) }}

                    <input type="hidden" name="avatar" value="{{ $user_info['headimgurl'] }}">
                    <input type="hidden" name="save_type" value="all">
                    <div class="form-line">
                      <label class="st-label">名字</label>
                      <input type="text" name="name" id="textfield1" value="{{ $customer->name }}"  style=" width:80%;" />
                    </div>

                    <div class="form-line">
                      <label class="st-label">手机</label>
                      <input type="tel" name="mobile" id="textfield2" value="{{ $customer->mobile }}"  style=" width:80%;" />
                    </div>

                    {{--<div class="form-line">--}}
                      {{--<label class="st-label">验证码</label>--}}
                       {{--<input type="submit" name="button" id="button" value="验 证 码" class="submit-button" />--}}
                      {{--<input type="text" name="textfield" id="textfield3"  style=" width:50%;" value="输入手机验证码" onfocus="if(value == defaultValue){value='';this.style.color='#ccc'}" onblur="if(!value){value = defaultValue;this.style.color='#ededed'}"  />--}}
                    {{--</div>--}}

                    <div class="form-line">
                      <label class="st-label">性别</label>
                      <label><input type="radio" name="sex" @if($customer->sex == 1)checked @endif id="radio1" value="1" /> 男</label>
                      <label><input type="radio" name="sex" @if($customer->sex == 2)checked @endif id="radio2" value="2" /> 女</label>
                    </div>


                    <div class="form-line">
                    <input type="submit" name="button" id="button" value="&nbsp;提 交&nbsp;" class="submit-button" />
                    <input type="submit" name="button" id="button2" value="&nbsp;重 置&nbsp;" class="" />
                    </div>

                  {{ Form::close() }}

                </div>
           </div>

            <!-- start top button -->
            <div class="topbutton"><a href="#"><span>顶部</span></a></div>
            <!-- end top button -->



            <!-- start footer -->
            <div class="footer">
            © 2014 - 2015  邦顶科技 <a href="http://www.o2bang.com">www.o2bang.com</a> </div>
            <!-- end footer -->




    <div class="clear"></div>
    </div>
    <!-- end page -->
<script type="text/javascript" src="{{ URL::asset('front/js/frame.js') }}"></script>
<script>
function check(id){
    $.post('{{ route('customers.ajax') }}',{id : id},function(data){
        $('#select2').html(data);
    })
}
     $(function(){

            $("#customers").validate({
                rules: {
                    name: "required",
                    sex: "required",
                    mobile: "required"
                },
                messages: {
                    name: "",
                    sex: "",
                    mobile: ""
                }
            });
        });
</script>
</body>
</html>
